package com.caishi.lkx.user.api;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caishi.lkx.user.model.TeacherModel;
import com.caishi.lkx.user.service.ISysTeacherService;
import com.zzw.common.annotation.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/sys/teacher")
public class SysTeacherApi {
    @Autowired
    private ISysTeacherService sysTeacherService;
    @ApiResult
    @GetMapping("/list")
    public IPage<TeacherModel> list(Page<TeacherModel> page){
        return sysTeacherService.getTeachers(page,new TeacherModel());
    }
}
